<?php
	/*Pongo aquí esta función a modo de ejemplo, pero hay que completarlo para cabezeras, 
	cuerpos y pies para la interfaz gráfica y te ahorrarás trabajo*/
	function head($title, $scriptPaths, $cssPaths){
		echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">
			  <!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\" lang=\"en\"> <![endif]-->
			  <!--[if IE 7]>    <html class=\"no-js lt-ie9 lt-ie8\" lang=\"en\"> <![endif]-->
			  <!--[if IE 8]>    <html class=\"no-js lt-ie9\" lang=\"en\"> <![endif]-->
			  <!--[if gt IE 8]><!--><html class=\"no-js\" lang=\"en\"> <!--<![endif]-->
			  <head>
				  <meta charset=\"utf-8\">
				  <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">

				  <title>$title</title>
				  <meta name=\"description\" content=\"\">
				  <meta name=\"author\" content=\"\">

				  <meta name=\"viewport\" content=\"width=device-width\">";
				  
		if($cssPaths)
		{
			foreach($cssPaths as $cssPath)
			{
				echo "<link rel=\"stylesheet\" href=\"$cssPath\">\n";
			}
		}
		
		echo	 "<link rel=\"stylesheet\" href=\"frontend/include/css/normalize.css\">
				  <link rel=\"stylesheet\" href=\"frontend/include/css/base.css\">
				  <link rel=\"stylesheet\" href=\"frontend/include/css/grid.css\">
				  <link rel=\"stylesheet\" href=\"frontend/include/css/style.css\">
				  
				  <link rel=\"stylesheet\" href=\"frontend/include/jquery.treeview/jquery.treeview.css\" />
	
				  <script src=\"frontend/include/jquery.treeview/lib/jquery.js\" type=\"text/javascript\"></script>
				  <script src=\"frontend/include/jquery.treeview/lib/jquery.cookie.js\" type=\"text/javascript\"></script>
				  <script src=\"frontend/include/jquery.treeview/jquery.treeview.js\" type=\"text/javascript\"></script>
				
				  <script type=\"text/javascript\">
					$(function() {
						$(\"#tree\").treeview({
							collapsed: true,
							animated: \"medium\",
							control:\"#sidetreecontrol\",
							persist: \"location\"
						});
					})
				  </script>
				  
				  
				  <link rel=\"stylesheet\" href=\"frontend/templates/".TEMPLATE_NAME."/css/layout.css\">
				  <link rel=\"stylesheet\" href=\"frontend/templates/".TEMPLATE_NAME."/css/colors.css\">
				  <link rel=\"stylesheet\" href=\"frontend/templates/".TEMPLATE_NAME."/css/uielements.css\">

				  <script src=\"frontend/include/js/modernizr-2.6.2.min.js\"></script>
				
				  <link rel=\"icon\" href=\"frontend/templates/".TEMPLATE_NAME."/media/favicon.ico\" type=\"image/x-icon\" />
			  </head>";
	}

	function foot(){
		echo "<script src=\"frontend/include/js/scripts.js\"></script>
			  </body>
			  </html>";
	}
?>